home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Assistant
/
Business Assistant.iso
/
acctg
/
pay1pers
/
w2form.prg
< prev
next >
Wrap
Text File
|
1987-01-15
|
838b
|
42 lines
*** W2FORM.PRG (procedure to print w2's)
*** v. 2.6 01/15/87
*** Copyright @ 1987, Martin J. Michaelson
CLEAR
CLEAR ALL
SET BELL OFF
SET TALK OFF
SELECT 1
USE PAY_PERS INDEX EMPNO
GO TOP
SELECT 3
USE PAY_YTD INDEX EMPNMYTD
SET RELATION TO EMP_NMBR INTO PAY_PERS
DO WHILE .NOT. EOF()
SET PRINT ON
?
? " "+STR(A->EMP_NMBR,3)
?
? " your company name., inc."+" "
?? "xx-xxxxxxx"
? " your company address "
? " your company cty,st,zip"
?
?
?
? " "+A->SS_NMBR+" "+STR(C->FWT_YTD,8,2)+"ì
"+STR(C->GRO_YTD,9,2)+SPACE(11)+STR(C->FCIA_YTD,7,2)
?
? " "+A->NAME+" "+STR(C->GRO_YTD,8,2)
?
? " "+A->ADDRESS
? " "+A->CITY_ST+A->ZIP
? SPACE(40)+STR(C->SWT_YTD,7,2)+SPACE(15)+"NEW YORK"
?
? SPACE(40)+STR(C->CWT_YTD,7,2)
?
?
?
?
SKIP
SET PRINT OFF
ENDDO